# -*- coding: utf-8 -*-

################################################################################
## Form generated from reading UI file 'semg_fes_UI.ui'
##
## Created by: Qt User Interface Compiler version 6.4.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
    QMetaObject, QObject, QPoint, QRect,
    QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
    QCursor, QFont, QFontDatabase, QGradient,
    QIcon, QImage, QKeySequence, QLinearGradient,
    QPainter, QPalette, QPixmap, QRadialGradient,
    QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QGridLayout,
    QHBoxLayout, QLabel, QLayout, QLineEdit,
    QMainWindow, QMenu, QMenuBar, QPushButton,
    QSizePolicy, QSlider, QSpacerItem, QStatusBar,
    QTextBrowser, QVBoxLayout, QWidget)

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(1301, 883)
        sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        self.actionsave_data_as = QAction(MainWindow)
        self.actionsave_data_as.setObjectName(u"actionsave_data_as")
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.gridLayout_2 = QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.horizontalLayout_2 = QHBoxLayout()
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.horizontalLayout_2.setSizeConstraint(QLayout.SetDefaultConstraint)
        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setSpacing(10)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.connection_gridLayout = QGridLayout()
        self.connection_gridLayout.setObjectName(u"connection_gridLayout")
        self.lineEdit = QLineEdit(self.centralwidget)
        self.lineEdit.setObjectName(u"lineEdit")
        font = QFont()
        font.setFamilies([u"Consolas"])
        font.setPointSize(12)
        font.setBold(True)
        self.lineEdit.setFont(font)

        self.connection_gridLayout.addWidget(self.lineEdit, 2, 1, 1, 1)

        self.label = QLabel(self.centralwidget)
        self.label.setObjectName(u"label")
        font1 = QFont()
        font1.setPointSize(12)
        font1.setBold(True)
        self.label.setFont(font1)

        self.connection_gridLayout.addWidget(self.label, 0, 0, 1, 1)

        self.label_2 = QLabel(self.centralwidget)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setFont(font1)

        self.connection_gridLayout.addWidget(self.label_2, 2, 0, 1, 1)

        self.comboBox = QComboBox(self.centralwidget)
        self.comboBox.addItem("")
        self.comboBox.setObjectName(u"comboBox")
        font2 = QFont()
        font2.setPointSize(11)
        font2.setBold(True)
        self.comboBox.setFont(font2)

        self.connection_gridLayout.addWidget(self.comboBox, 0, 1, 1, 1)

        self.label_8 = QLabel(self.centralwidget)
        self.label_8.setObjectName(u"label_8")
        self.label_8.setFont(font1)

        self.connection_gridLayout.addWidget(self.label_8, 1, 0, 1, 1)

        self.comboBox_2 = QComboBox(self.centralwidget)
        self.comboBox_2.addItem("")
        self.comboBox_2.setObjectName(u"comboBox_2")
        self.comboBox_2.setFont(font2)

        self.connection_gridLayout.addWidget(self.comboBox_2, 1, 1, 1, 1)


        self.verticalLayout.addLayout(self.connection_gridLayout)

        self.gridLayout_4 = QGridLayout()
        self.gridLayout_4.setObjectName(u"gridLayout_4")
        self.pushButton_record_sEMG = QPushButton(self.centralwidget)
        self.pushButton_record_sEMG.setObjectName(u"pushButton_record_sEMG")
        font3 = QFont()
        font3.setPointSize(10)
        font3.setBold(True)
        self.pushButton_record_sEMG.setFont(font3)
        self.pushButton_record_sEMG.setCheckable(True)

        self.gridLayout_4.addWidget(self.pushButton_record_sEMG, 4, 2, 1, 1)

        self.checkBox_ch2 = QCheckBox(self.centralwidget)
        self.checkBox_ch2.setObjectName(u"checkBox_ch2")
        self.checkBox_ch2.setFont(font3)
        self.checkBox_ch2.setChecked(True)

        self.gridLayout_4.addWidget(self.checkBox_ch2, 3, 0, 1, 1)

        self.comboBox_sEMG = QComboBox(self.centralwidget)
        icon = QIcon()
        iconThemeName = u"accessories-calculator"
        if QIcon.hasThemeIcon(iconThemeName):
            icon = QIcon.fromTheme(iconThemeName)
        else:
            icon.addFile(u".", QSize(), QIcon.Normal, QIcon.Off)

        self.comboBox_sEMG.addItem(icon, "")
        self.comboBox_sEMG.addItem("")
        self.comboBox_sEMG.setObjectName(u"comboBox_sEMG")
        self.comboBox_sEMG.setFont(font)

        self.gridLayout_4.addWidget(self.comboBox_sEMG, 4, 3, 1, 1)

        self.pushButton_beginconnect = QPushButton(self.centralwidget)
        self.pushButton_beginconnect.setObjectName(u"pushButton_beginconnect")
        self.pushButton_beginconnect.setFont(font1)
        self.pushButton_beginconnect.setCheckable(True)
        self.pushButton_beginconnect.setChecked(False)
        self.pushButton_beginconnect.setAutoDefault(False)
        self.pushButton_beginconnect.setFlat(False)

        self.gridLayout_4.addWidget(self.pushButton_beginconnect, 0, 0, 1, 1)

        self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.gridLayout_4.addItem(self.horizontalSpacer_2, 3, 2, 1, 1)

        self.checkBox_ch1 = QCheckBox(self.centralwidget)
        self.checkBox_ch1.setObjectName(u"checkBox_ch1")
        self.checkBox_ch1.setFont(font3)
        self.checkBox_ch1.setChecked(True)

        self.gridLayout_4.addWidget(self.checkBox_ch1, 1, 3, 1, 1)

        self.pushButton_sendFESconfig = QPushButton(self.centralwidget)
        self.pushButton_sendFESconfig.setObjectName(u"pushButton_sendFESconfig")
        self.pushButton_sendFESconfig.setFont(font1)

        self.gridLayout_4.addWidget(self.pushButton_sendFESconfig, 0, 3, 1, 1)

        self.checkBox_ch0 = QCheckBox(self.centralwidget)
        self.checkBox_ch0.setObjectName(u"checkBox_ch0")
        self.checkBox_ch0.setFont(font3)
        self.checkBox_ch0.setChecked(True)

        self.gridLayout_4.addWidget(self.checkBox_ch0, 1, 0, 1, 1)

        self.label_semg = QLabel(self.centralwidget)
        self.label_semg.setObjectName(u"label_semg")
        self.label_semg.setFont(font1)

        self.gridLayout_4.addWidget(self.label_semg, 4, 0, 1, 1)

        self.checkBox_ch3 = QCheckBox(self.centralwidget)
        self.checkBox_ch3.setObjectName(u"checkBox_ch3")
        self.checkBox_ch3.setFont(font3)
        self.checkBox_ch3.setChecked(True)

        self.gridLayout_4.addWidget(self.checkBox_ch3, 3, 3, 1, 1)

        self.label_9 = QLabel(self.centralwidget)
        self.label_9.setObjectName(u"label_9")
        self.label_9.setFont(font1)
        self.label_9.setAlignment(Qt.AlignCenter)

        self.gridLayout_4.addWidget(self.label_9, 5, 0, 1, 1)

        self.comboBox_controlmode = QComboBox(self.centralwidget)
        icon1 = QIcon(QIcon.fromTheme(u"accessories-calculator"))
        self.comboBox_controlmode.addItem(icon1, "")
        self.comboBox_controlmode.addItem("")
        self.comboBox_controlmode.addItem("")
        self.comboBox_controlmode.setObjectName(u"comboBox_controlmode")
        font4 = QFont()
        font4.setFamilies([u"\u5fae\u8f6f\u96c5\u9ed1 Light"])
        font4.setPointSize(10)
        font4.setBold(True)
        self.comboBox_controlmode.setFont(font4)
        self.comboBox_controlmode.setLayoutDirection(Qt.LeftToRight)

        self.gridLayout_4.addWidget(self.comboBox_controlmode, 5, 3, 1, 1)


        self.verticalLayout.addLayout(self.gridLayout_4)

        self.gridLayout_6 = QGridLayout()
        self.gridLayout_6.setObjectName(u"gridLayout_6")

        self.verticalLayout.addLayout(self.gridLayout_6)

        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.verticalLayout.addItem(self.verticalSpacer)

        self.label_3 = QLabel(self.centralwidget)
        self.label_3.setObjectName(u"label_3")
        self.label_3.setFont(font1)
        self.label_3.setAlignment(Qt.AlignCenter)

        self.verticalLayout.addWidget(self.label_3)

        self.FEScontrol_grid = QGridLayout()
        self.FEScontrol_grid.setObjectName(u"FEScontrol_grid")
        self.FEScontrol_grid.setVerticalSpacing(6)
        self.CH_Slider_1 = QSlider(self.centralwidget)
        self.CH_Slider_1.setObjectName(u"CH_Slider_1")
        font5 = QFont()
        font5.setFamilies([u"Microsoft Sans Serif"])
        self.CH_Slider_1.setFont(font5)
        self.CH_Slider_1.setAutoFillBackground(True)
        self.CH_Slider_1.setMaximum(4092)
        self.CH_Slider_1.setSingleStep(10)
        self.CH_Slider_1.setPageStep(50)
        self.CH_Slider_1.setOrientation(Qt.Horizontal)
        self.CH_Slider_1.setInvertedControls(False)

        self.FEScontrol_grid.addWidget(self.CH_Slider_1, 0, 2, 1, 1)

        self.CH_Slider_3 = QSlider(self.centralwidget)
        self.CH_Slider_3.setObjectName(u"CH_Slider_3")
        self.CH_Slider_3.setMaximum(4092)
        self.CH_Slider_3.setSingleStep(20)
        self.CH_Slider_3.setPageStep(50)
        self.CH_Slider_3.setOrientation(Qt.Horizontal)

        self.FEScontrol_grid.addWidget(self.CH_Slider_3, 2, 2, 1, 1)

        self.label_5 = QLabel(self.centralwidget)
        self.label_5.setObjectName(u"label_5")
        self.label_5.setFont(font1)
        self.label_5.setAlignment(Qt.AlignCenter)

        self.FEScontrol_grid.addWidget(self.label_5, 1, 0, 1, 1)

        self.CH_Slider_2 = QSlider(self.centralwidget)
        self.CH_Slider_2.setObjectName(u"CH_Slider_2")
        self.CH_Slider_2.setMaximum(4092)
        self.CH_Slider_2.setSingleStep(20)
        self.CH_Slider_2.setPageStep(50)
        self.CH_Slider_2.setOrientation(Qt.Horizontal)

        self.FEScontrol_grid.addWidget(self.CH_Slider_2, 1, 2, 1, 1)

        self.label_6 = QLabel(self.centralwidget)
        self.label_6.setObjectName(u"label_6")
        self.label_6.setFont(font1)
        self.label_6.setAlignment(Qt.AlignCenter)

        self.FEScontrol_grid.addWidget(self.label_6, 2, 0, 1, 1)

        self.label_4 = QLabel(self.centralwidget)
        self.label_4.setObjectName(u"label_4")
        self.label_4.setFont(font1)
        self.label_4.setAlignment(Qt.AlignCenter)

        self.FEScontrol_grid.addWidget(self.label_4, 0, 0, 1, 1)

        self.CH_Slider_4 = QSlider(self.centralwidget)
        self.CH_Slider_4.setObjectName(u"CH_Slider_4")
        self.CH_Slider_4.setMaximum(4092)
        self.CH_Slider_4.setSingleStep(20)
        self.CH_Slider_4.setOrientation(Qt.Horizontal)

        self.FEScontrol_grid.addWidget(self.CH_Slider_4, 3, 2, 1, 1)

        self.label_7 = QLabel(self.centralwidget)
        self.label_7.setObjectName(u"label_7")
        self.label_7.setFont(font1)
        self.label_7.setAlignment(Qt.AlignCenter)

        self.FEScontrol_grid.addWidget(self.label_7, 3, 0, 1, 1)

        self.label_ch1 = QLabel(self.centralwidget)
        self.label_ch1.setObjectName(u"label_ch1")
        font6 = QFont()
        font6.setFamilies([u"Times New Roman"])
        self.label_ch1.setFont(font6)

        self.FEScontrol_grid.addWidget(self.label_ch1, 1, 1, 1, 1)

        self.label_ch0 = QLabel(self.centralwidget)
        self.label_ch0.setObjectName(u"label_ch0")
        font7 = QFont()
        font7.setFamilies([u"Times New Roman"])
        font7.setPointSize(10)
        self.label_ch0.setFont(font7)

        self.FEScontrol_grid.addWidget(self.label_ch0, 0, 1, 1, 1)

        self.label_ch2 = QLabel(self.centralwidget)
        self.label_ch2.setObjectName(u"label_ch2")
        self.label_ch2.setFont(font6)

        self.FEScontrol_grid.addWidget(self.label_ch2, 2, 1, 1, 1)

        self.label_ch3 = QLabel(self.centralwidget)
        self.label_ch3.setObjectName(u"label_ch3")
        self.label_ch3.setFont(font6)

        self.FEScontrol_grid.addWidget(self.label_ch3, 3, 1, 1, 1)

        self.FEScontrol_grid.setRowStretch(0, 1)
        self.FEScontrol_grid.setRowStretch(1, 1)
        self.FEScontrol_grid.setRowStretch(2, 1)
        self.FEScontrol_grid.setRowStretch(3, 1)
        self.FEScontrol_grid.setColumnStretch(0, 1)
        self.FEScontrol_grid.setColumnStretch(1, 1)
        self.FEScontrol_grid.setColumnStretch(2, 8)

        self.verticalLayout.addLayout(self.FEScontrol_grid)

        self.verticalLayout.setStretch(0, 2)
        self.verticalLayout.setStretch(1, 2)
        self.verticalLayout.setStretch(3, 1)
        self.verticalLayout.setStretch(5, 3)

        self.horizontalLayout_2.addLayout(self.verticalLayout)

        self.verticalLayout_2 = QVBoxLayout()
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.graph_widget = QWidget(self.centralwidget)
        self.graph_widget.setObjectName(u"graph_widget")

        self.verticalLayout_2.addWidget(self.graph_widget)

        self.gridLayout = QGridLayout()
        self.gridLayout.setObjectName(u"gridLayout")
        self.textBrowser = QTextBrowser(self.centralwidget)
        self.textBrowser.setObjectName(u"textBrowser")
        font8 = QFont()
        font8.setFamilies([u"Courier New"])
        font8.setPointSize(11)
        self.textBrowser.setFont(font8)

        self.gridLayout.addWidget(self.textBrowser, 0, 0, 1, 2)

        self.lineEdit_command = QLineEdit(self.centralwidget)
        self.lineEdit_command.setObjectName(u"lineEdit_command")
        font9 = QFont()
        font9.setFamilies([u"Courier New"])
        font9.setPointSize(10)
        font9.setBold(True)
        self.lineEdit_command.setFont(font9)

        self.gridLayout.addWidget(self.lineEdit_command, 1, 0, 1, 1)

        self.pushButton_send = QPushButton(self.centralwidget)
        self.pushButton_send.setObjectName(u"pushButton_send")
        self.pushButton_send.setFont(font1)

        self.gridLayout.addWidget(self.pushButton_send, 1, 1, 1, 1)


        self.verticalLayout_2.addLayout(self.gridLayout)

        self.verticalLayout_2.setStretch(0, 8)
        self.verticalLayout_2.setStretch(1, 1)

        self.horizontalLayout_2.addLayout(self.verticalLayout_2)

        self.horizontalLayout_2.setStretch(1, 8)

        self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)

        self.horizontalLayout_6 = QHBoxLayout()
        self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")

        self.gridLayout_2.addLayout(self.horizontalLayout_6, 1, 0, 1, 1)

        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 1301, 22))
        self.menu = QMenu(self.menubar)
        self.menu.setObjectName(u"menu")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.menubar.addAction(self.menu.menuAction())
        self.menu.addAction(self.actionsave_data_as)

        self.retranslateUi(MainWindow)
        self.CH_Slider_1.sliderMoved.connect(self.label_ch0.setNum)
        self.CH_Slider_2.sliderMoved.connect(self.label_ch1.setNum)
        self.CH_Slider_4.sliderMoved.connect(self.label_ch3.setNum)
        self.CH_Slider_3.sliderMoved.connect(self.label_ch2.setNum)

        self.pushButton_beginconnect.setDefault(False)


        QMetaObject.connectSlotsByName(MainWindow)
    # setupUi

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
        self.actionsave_data_as.setText(QCoreApplication.translate("MainWindow", u"save data as..", None))
        self.lineEdit.setText(QCoreApplication.translate("MainWindow", u"8080", None))
        self.label.setText(QCoreApplication.translate("MainWindow", u"\u901a\u8baf\u65b9\u5f0f", None))
        self.label_2.setText(QCoreApplication.translate("MainWindow", u"\u76d1\u542c\u7aef\u53e3", None))
        self.comboBox.setItemText(0, QCoreApplication.translate("MainWindow", u"UDP", None))

        self.label_8.setText(QCoreApplication.translate("MainWindow", u"\u76d1\u542c\u5730\u5740", None))
        self.comboBox_2.setItemText(0, QCoreApplication.translate("MainWindow", u"192.168.1.1", None))

        self.pushButton_record_sEMG.setText(QCoreApplication.translate("MainWindow", u"\u5f55\u5236", None))
        self.checkBox_ch2.setText(QCoreApplication.translate("MainWindow", u"sEMG_CH2", None))
        self.comboBox_sEMG.setItemText(0, QCoreApplication.translate("MainWindow", u"RAW", None))
        self.comboBox_sEMG.setItemText(1, QCoreApplication.translate("MainWindow", u"RMS", None))

        self.pushButton_beginconnect.setText(QCoreApplication.translate("MainWindow", u"\u5f00\u542f\u8fde\u63a5", None))
        self.checkBox_ch1.setText(QCoreApplication.translate("MainWindow", u"sEMG_CH1", None))
        self.pushButton_sendFESconfig.setText(QCoreApplication.translate("MainWindow", u"\u53d1\u9001\u7535\u523a\u6fc0\u8bbe\u7f6e", None))
        self.checkBox_ch0.setText(QCoreApplication.translate("MainWindow", u"sEMG_CH0", None))
        self.label_semg.setText(QCoreApplication.translate("MainWindow", u"sEMG\u6a21\u5f0f", None))
        self.checkBox_ch3.setText(QCoreApplication.translate("MainWindow", u"sEMG_CH3", None))
        self.label_9.setText(QCoreApplication.translate("MainWindow", u"\u63a7\u5236\u6a21\u5f0f", None))
        self.comboBox_controlmode.setItemText(0, QCoreApplication.translate("MainWindow", u"\u624b\u52a8\u63a7\u5236", None))
        self.comboBox_controlmode.setItemText(1, QCoreApplication.translate("MainWindow", u"\u540c\u4fa7\u89e6\u53d1\u63a7\u5236", None))
        self.comboBox_controlmode.setItemText(2, QCoreApplication.translate("MainWindow", u"\u5bf9\u4fa7\u95ed\u73af\u63a7\u5236", None))

        self.label_3.setText(QCoreApplication.translate("MainWindow", u"\u7535\u523a\u6fc0\u5f3a\u5ea6\u914d\u7f6e", None))
        self.label_5.setText(QCoreApplication.translate("MainWindow", u"CH2", None))
        self.label_6.setText(QCoreApplication.translate("MainWindow", u"CH3", None))
        self.label_4.setText(QCoreApplication.translate("MainWindow", u"CH1", None))
        self.label_7.setText(QCoreApplication.translate("MainWindow", u"CH4", None))
        self.label_ch1.setText(QCoreApplication.translate("MainWindow", u"0", None))
        self.label_ch0.setText(QCoreApplication.translate("MainWindow", u"0", None))
        self.label_ch2.setText(QCoreApplication.translate("MainWindow", u"0", None))
        self.label_ch3.setText(QCoreApplication.translate("MainWindow", u"0", None))
        self.pushButton_send.setText(QCoreApplication.translate("MainWindow", u"Send", None))
        self.menu.setTitle(QCoreApplication.translate("MainWindow", u"\u4fdd\u5b58\u6570\u636e", None))
    # retranslateUi

